package cn.tedu.yxcar.product.mapper.user;


import cn.tedu.yxcar.product.pojo.entity.user.User;
import cn.tedu.yxcar.product.pojo.vo.user.UserVO;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Qualifier("db2SqlSessionTemplate")
@Repository
public interface UserMapper {
    User findByUsername(String username);

    UserVO findById(Long id);


    int countByUsername(String username);

    int countByPhone(String phone);

    int countByEmail(String email);

    int insert(User user);
}
